package com.kingint.web.portal.serve.service;

import com.kingint.mbg.dto.MemberReturn;
import com.kingint.mbg.dto.department.DepartmentRepairFront;
import com.kingint.mbg.dto.department.DepartmentRepairParam;
import com.kingint.mbg.ser.entity.SerDepartmentRepair;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * <p>
 * 部门保修表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-20
 */
public interface DepartmentRepairService extends IService<SerDepartmentRepair> {

    /**
     * 添加维修单
     * @param departmentRepairParam
     * @return
     */
    int addDepartmentRepairInfo(DepartmentRepairParam departmentRepairParam);
    /**
     * 接单
     * @param id
     * @return
     */
    Integer receiveOrder(Integer id);

    /**
     * 获取待接单的维护单
     * @return
     */
    List<DepartmentRepairFront> getWaitReceiveOrder();

    /**
     * 查询对应维修单的详情信息
     * @param workId
     * @return
     */
    DepartmentRepairParam getDepartmentRepairOrderDetails(Integer workId);

    /**
     * 维修人员完成维修提交维修单
     * @param departmentRepairParam
     * @return
     */
    int finishDepartmentRepairOrder(DepartmentRepairParam departmentRepairParam);

    /**
     * 获取用户处理中的维修单
     * @return
     */
    List<DepartmentRepairFront> getUserHandleRepairOrder();

    /**
     * 获取已经完成的维修单信息
     * @return
     */
    List<DepartmentRepairFront> getAlreadyCompleted();

    /**
     * 查询用户待验收的维修单
     * @return
     */
    List<DepartmentRepairFront> getUserWaitCheckOrder();

    /**
     * 获取维修人员列表
     * @return
     */
    List<MemberReturn> getRepairUserList();

    /**
     * 验收完成
     * @param status
     * @param id
     * @return
     */
    Integer completeRepairInfo(Integer status, Integer id);
}
